﻿using OA.Models.Root;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OA.Models
{
    /// <summary>
    /// 部门（组织机构）
    /// </summary>
    public class SysOrg:EntityBase
    {


        [Required]
        [StringLength(20)]
        public string Name { get; set; }

        public int ParentId { get; set; }

        [StringLength(50)]
        public string Description { get; set; }

        public virtual ICollection<SysPerson> Persons { get; set; }


        //public string CreateBy { get; set; }
        //public DateTime CreateAt { get; set; }
        //public DateTime UpdateAt { get; set; }
        //public string UpdateBy { get; set; }
        //public DateTime DeleteAt { get; set; }
        //public string DeleteBy { get; set; }

    }
}
